<div ng-controller="malogController">

	<div class="row" style="margin-bottom:10px;">
		<div class="col-md-12">
			<div ng-if="logs == null">
				<div class="alert alert-info" role="alert" style="text-align: center;">加载中...</div>
			</div>
			<div ng-if="logs != null && logs.length == 0">
				<div class="alert alert-warning" role="alert" style="text-align: center;">没有日志文件</div>
			</div>
			<div ng-if="logs != null && logs.length > 0" class="list-group">
			  <a ng-repeat="(index, log) in logs" ng-click="showLoginfo(log);" class="list-group-item">
			  	{{log}}
			    <span style="float:right;cursor:pointer;" class="glyphicon glyphicon-trash" ng-click="delLog($event, log);"></span>
			  </a>
			</div>
		</div>
	</div>
	
	<div style="position:fixed;bottom:0;left:0;width:100%;">
		<div class="row">
			<div class="col-md-10 col-md-offset-1">
				
				<button ng-if="!monitoring" type="submit" class="btn btn-lg btn-success" style="width:100%;" ng-click="start();">开始监控</button>
				<button ng-if="monitoring" type="submit" class="btn btn-lg btn-warning" style="width:100%;" ng-click="stop();">停止监控</button>
			</div>
		</div>
	</div>
	
</div>
